/*
 * @Author: xmily
 * @Date: 2022-02-28 23:18:37
 * @LastEditors: xmily
 * @LastEditTime: 2023-02-05 17:15:20
 * @FilePath: \glxxapi\models\AfterClassService\addstatus.js
 * @Description: 
 * 课后服务PC端管理界面可主动添加学生的功能开关
 * Copyright (c) 2022 by xmily/mxthink.com.cn, All Rights Reserved. 
 */
var mongoose = require('../../cfg/dbconfig.js')

var addStatusSchema=new mongoose.Schema({
    schoolname:String,
    term:String,
    month:String,
    addstatus:Boolean,
    enableApplication:Boolean,
    quitstatus:Boolean,
    delstatus:Boolean,
    editstatus:Boolean,
    cancelquit:Boolean,
},{collection:'aftclsvr_addstatus'})

addStatusSchema.statics.GetByQuery=async function(query,fields){
    fields=fields||{};
    let result= await this.find(query,fields).exec();
    return result
};





module.exports = mongoose.model('aftclsvr_addstatus', addStatusSchema)